
# 下载中间件

class DownloaderMiddleware():
    # 传递request
    def process_request(self, request):
        print('Down---中间件--request')
        return request

    # 传递response
    def process_response(self, response):
        print('Down--中间件--response')
        return response
